home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / files / userLog.man < prev   
Encoding:
Text File  |  1989-02-16  |  2.5 KB  |  62 lines

  1. ' Copyright 1989 Regents of the University of California
  2. ' Permission to use, copy, modify, and distribute this
  3. ' documentation for any purpose and without fee is hereby
  4. ' granted, provided that this notice appears in all copies.
  5. ' The University of California makes no representations about
  6. ' the suitability of this material for any purpose.  It is
  7. ' provided "as is" without express or implied warranty.
  8. ' $Header: /sprite/src/man/files/RCS/userLog.man,v 1.1 89/02/16 10:04:22 ouster Exp $ SPRITE (Berkeley)
  9. .so \*(]ltmac.sprite
  10. .HS userLog files
  11. .BS
  12. .SH NAME
  13. /sprite/admin/userLog, /sprite/admin/lastLog \- files containing information about user logins
  14. .SH DESCRIPTION
  15. .PP
  16. Each time a user logs into a sprite host, the system records
  17. information about the login in two files.  Each record in each file is
  18. a fixed-length ASCII string, so a particular record
  19. may be updated without the need to read and rewrite all other records
  20. in the file. 
  21. .PP
  22. One file records information on a per-host basis, while the other
  23. records information about the last login of each user.  The per-host
  24. file, \fB/sprite/admin/userLog\fP, has one record for each ``port'' of
  25. each host.  The ports are numbered, with port 0 reserved for the
  26. console of each host and ports 1-N corresponding to rlogin
  27. pseudo-devices 1-N.  The per-user file, \fB/sprite/admin/lastLog\fP,
  28. has one record per registered user, indexed by the userID in
  29. \fB/etc/passwd\fP.  
  30. .PP
  31. When a user logs in, the record for the user's last login is updated
  32. to show the new login.  The record for the host and port into which
  33. the user logs in is updated with the same information.  When the user
  34. logs out, the latter record is invalidated to show no one is currently
  35. logged in on that port, but the record for last login is updated only
  36. when the user logs in again.
  37. .PP
  38. Each record contains the following information, separated by white
  39. space:
  40. .IP valid 14
  41. Whether the entry corresponds to a current login.
  42. .IP hostID 14
  43. Host on which user logged in.
  44. .IP portID 14
  45. Port on this host on which user logged in.
  46. .IP time 14
  47. time at which user logged in, or 0 when record is invalidated.
  48. .IP location 14
  49. string indicating other host from which rlogin occurred, or empty.
  50. .PP
  51. Although the information is stored in ASCII format, to make it
  52. sharable by machines with different byte orderings, internally the
  53. user log is accessed via routines that convert between ASCII
  54. and an internal C structure.  Refer to the documentation for the
  55. \fBulog\fP library for information about this structure.
  56. .SH "SEE ALSO"
  57. ulog, db, login, finger
  58. .SH KEYWORDS
  59. database, user log
  60.